package my.diplom.dao;

import my.diplom.entity.User;
import my.diplom.entity.Resource;
import my.diplom.exceptions.UserNotFoundException;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gb
 * Date: 13.07.2009
 * Time: 23:56:39
 * To change this template use File | Settings | File Templates.
 */
public interface IUserDAO {
    void create(User user);
	void update(User user);
	User getById(Long userId);
    User getById(Long userId, boolean initProjects);
	List<User> getAll();
    List<User> getAll(boolean initProjects);
    List<User> getUsersByResource(Resource resource);
	User getByLogin(String login) throws UserNotFoundException;
	void delete(User user);
}
